<!DOCTYPE html>
<html>    
<meta http-equiv="content-type" content="text/html;charset=utf-8">
 <head>
 <script src="js/jquery.1.7.2.min.js"></script>
 <link href="layui/css/layui.css" rel="stylesheet" type="text/css"/>
 <script src="layer/layer.js"></script>
 <script src="layui/layui.js"></script>

 <?
 //php模拟从数据库拿到数据
 $username='ok';
 $password='123';
 $cion=base64_encode(1);
 ?>
 <script>
 //iframe层
layer.open({
  type: 2,
  title: '在线聊天',
  maxmin: true, //开启最大化最小化按钮
  area: ['380px', '95%'],
  offset: 'rb',
  //下面这个username 值是 获取平台的
  content: '/index.php?username=<?echo $username;?>&password=<?echo $password;?>&cion=<?echo $cion;?>' //iframe的url
}); 
 </script>
<!--
 <script>

 $.post("regmember.php", { username: '<?echo $username;?>'},
   function(data){
	//返回值
   layer.msg(data);
   },1000);

 </script>
 -->
<body>

</body>
